package com.hu.system.domain;

import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 店铺信息对象 shop_info
 *
 * @author hu
 * @date 2025-01-21
 */
public class ShopInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称")
    @NotBlank(message = "店铺名称不能为空")
    @Size(min = 0, max = 100, message = "店铺名称长度不能超过100个字符")
    private String shopName;

    /**
     * 店铺编码
     */
    @Excel(name = "店铺编码")
    @NotBlank(message = "店铺编码不能为空")
    @Size(min = 0, max = 50, message = "店铺编码长度不能超过50个字符")
    private String shopCode;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @NotBlank(message = "状态不能为空")
    private String status;

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getShopCode() {
        return shopCode;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return "ShopInfo{" +
                "shopId=" + shopId +
                ", shopName='" + shopName + '\'' +
                ", shopCode='" + shopCode + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}

